package com.blobfish.fiction.common.base.validator;

import com.blobfish.fiction.common.util.ValiMessageUtil;
import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public abstract class BaseValidator extends Validator {
    @Override
    protected void handleError(Controller controller) {
        controller.renderJson(ValiMessageUtil.getMessage(controller));
    }
}
